<html>
<aside id="sidebar" class="column">
		<h3>Menu Principal</h3>
		<ul class="toggle">
			<li class="icn_edit_article"><a href="indexMDsalida.php">Salida de Articulos</a></li>
			<li class="icn_categories"><a href="indexCrudRptSalidas.php">Reporte de Salidas</a></li>
		</ul>	
</aside><!-- end of sidebar -->
<section id="main" class="column">
<?php if($msg!=""){ ?>
	<h4 class="alert_info"><?php echo $msg ?></h4>
<?php } ?>
<br>
<table width="20%" border="1" align="center" bgcolor="#EBEBEB" style="border-collapse:collapse; border-style:solid; border-color:#CCCCCC">
  <tr>
    <td colspan="3" valign="center"><div align="center"><a href="javascript:history.back()"><img src="images/back.png" width="22" height="22" border="0">Regresar</a></div></td>
    </tr>
</table>
<br>
<table cellpadding="2" cellspacing="2" width="95%" align="center" border="1" bgcolor="#EBEBEB" bordercolor="#FFFFFF"  style="border-collapse:collapse; border-style:solid;">
    <tr>
      <td width="8%" bgcolor="#CCCCCC"><strong>
      Id
      </strong></td>
      <td width="39%" bgcolor="#CCCCCC"><strong>
      Art&iacute;culo
      </strong></td>
      <td width="10%" bgcolor="#CCCCCC"><strong>Cantidad</strong></td>
      <td width="30%" bgcolor="#CCCCCC"><strong>Ultima modificaci&oacute;n </strong>
      <td width="13%" bgcolor="#CCCCCC"><strong>
      Opciones</strong><strong></strong>    </td>
    </tr>
    <?php
    if (@$datos)
    foreach ($datos as $key => $row) //Associative array $key = table, $row = row of $key
    {
    ?>
    <tr>
      <td align="left">
        <?php echo $row['SalidaDetalle_Id'] ?>      </td>
      <td align="left">
        <?php echo $row['ArticuloDescripcion'] ?>      </td>
      <td align="left">
        <?php echo $row['SalidaDetalleCantidad'] ?>      </td>
      <td align="left">
        <?php echo $row['FechaHoraUltimaModificacion'] ?>      </td>
      <td align="left">
      	<a href="indexCrudRptSalidas.php?controlador=borrar&id=<?php echo $row['Salida_Id'] ?>"><img src="images/icn_trash.png" width="16" height="14" border="0" alt="Eliminar registro"></a>      
      	<a href="indexCrudRptSalidas.php?controlador=detalle&id=<?php echo $row['Salida_Id'] ?>"></a>      </td>
    </tr>
    <?php } //end foreach loop
	?>
</table>
</section>
</html>